home *** CD-ROM | disk | FTP | other *** search
- Path: grafix.xs4all.nl!john.hendrikx
- Date: Sun, 07 Jan 96 14:31:16 GMT+1
- Newsgroups: comp.sys.amiga.programmer
- Distribution: world
- Subject: Re: Protection bits
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- From: john.hendrikx@grafix.xs4all.nl (John Hendrikx)
- Message-ID: <john.hendrikx.44q1@grafix.xs4all.nl>
- Organization: Grafix Attack BBS Holland
-
- In a message of 06 Jan 96 Michael Van Elst wrote to All:
-
- >> I'd like to see a new set of flags, or somekind of ID stored with each
- >> file which tells you the filetype. In other words taking the 'e' and 's'
- >> bit concepts one step further.
-
- MVE> With flags being pretty independent of the data in the file it is hard
- MVE> to make them a file type ID.
-
- Maybe the filesystem could be extended with somekind of hook which sets the
- file-type correctly by looking at the first 512-bytes of the file when it is
- first written/modified. It would be an automatic FileID-ing system which could
- be extended with new FileID's which the file system could recognise and store
- as a FileID long in the fileinfoblock.
-
- When I come to think of it this doesn't seem all that hard to do and it would
- probably not even slow down the filesystem. I mean, taking a peek at the first
- 512 bytes as it is written shouldn't be that hard. The only trouble is that
- 512 bytes might not be sufficient to make a FileID...
-
- This would make doing a directory with FileID's and with only IFF files in them
- really fast, like on the MAC's (even though they use an even more extensive,
- but unfortunately not always reliable system (you sometimes need to set the
- FileType correctly yourself...)).
-
- Grtz John
-
- -----------------------------------------------------------------------
- John.Hendrikx@grafix.xs4all.nl TextDemo/FastView/Etc... development
- -----------------------------------------------------------------------
- -- Via Xenolink 1.981, XenolinkUUCP 1.1
-